package com.party.service.study;

import com.party.common.Page;
import com.party.model.Curriculum;
import com.party.model.LearningContent;

import java.util.List;

/**
 * Created by 011926 on 2014/9/23.
 */
public interface LearningContentService
{
    public int add(LearningContent learningContent);

    public int delete(Integer id);

    public LearningContent getById(Integer id);

    public List<LearningContent> getByIds(List<Integer> ids);

    /**
     * 根据课程id获得 它下面的学习内容
     * @param currId
     * @return
     */
    public List<LearningContent> getByCurrId(Integer currId);

    /**
     * 根据课程标题获得 它下面的学习内容
     * @param title
     * @return
     */
    public List<LearningContent> getByCurrTitle(String title);

    /**
     * 分页获取
     * @param pageSize
     * @param pageNumber
     * @return
     */
    public Page getList(LearningContent learningContent, int pageSize, int pageNumber);

    public int edit(LearningContent learningContent);

    public List<LearningContent> getAll();

    /**
     * 获得用户学习过的所有内容
     * @param uid
     * @return
     */
    List<LearningContent> getByUid(Integer uid);

    /**
     * 获得这个人的这个学习内容的信息
     * @param contentId
     * @param uid
     * @return
     */
    LearningContent getByIdUid(Integer contentId, Integer uid);
}
